﻿package velbus.modules 
{
	import velbus.Packet;
	import velbus.Velbus;
	import velbus.VelbusEvent;
	
	/**
	* ...
	* @author Gert Stalpaert (gert@stogo.net)
	*/
	public class Dimmer extends VelbusModule
	{
		
		
		public static const MODULE_TYPE:int = 0x09;
				
		
		public function Dimmer(velbus:Velbus, address:int) 
		{
			super(velbus, address);
			title = "Dimmer " + Velbus.dec2hex(_address);
			_velbus.addEventListener(VelbusEvent.PACKET_RECEIVED, onPacketReceived);
		}
				
		
		override protected function get NrOfNames():int
		{
			return 1;
		}
		
		private function onPacketReceived(e:VelbusEvent):void 
		{
			//return if event is for other address
			if (e.packet.address != _address) {
				return
			}
			
			if (e.packet.command == VelbusModule.RECEIVE_MODULE_STATUS) {
				
			}
			
		}
		
		
		
		
	}
	
}